package com.example.take_out_admin.api;

import com.example.take_out_admin.service.EmployeeService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/employeeApi")
public class EmployeeApi {
    @Resource
    private EmployeeService employeeService;

    @GetMapping("{token}")
    public boolean validateToken(@PathVariable("token") String token){
        return  employeeService.validateToken(token);
    }
}
